invoke

operator fun <T> invoke(value: T?): Option<T>

Returns Some if the value is not null or None if the value is null.

Return

Some if the value is not null or None if the value is null.

Parameters

value

Nullable value.

T

Type of the optional value.